package com.huike.clues.mapper;


import com.huike.clues.domain.TbClue;
import com.huike.clues.domain.TbClueTrackRecord;
import com.huike.clues.domain.vo.ClueTrackRecordVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 线索跟进记录Mapper接口
 *
 * @date 2021-04-19
 */
@Mapper
public interface TbClueTrackRecordMapper {


    /**
     * 新增线索跟进记录
     */
    void addClueTrackRecord(@Param("tbClueTrackRecord") ClueTrackRecordVo tbClueTrackRecord, @Param("userName") String username);

    /*
     * 查询线索跟进记录
     */
    @Select("select * from tb_clue_track_record where clue_id=#{clueId} order by create_time desc")
    List<ClueTrackRecordVo> listByClueId(Long clueId);


}
